﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartPatientCentre.Models
{
    public class UreaResult : UniqueResult
    {
        public UreaResult(Result result)
        {
            ResultType = "Urea";
            Date = result.DateTime;
            Value = result.Urea.Value;

            if (Common.Urea.NormalRange(Value))
            {
                TileBackground = "#FFCDE6CD"; // Green
            }
            else
            {
                TileBackground = "#FFFFCDCD"; // Red
            }
        }
    }
}
